Skip to content

[6.x] Handle external links in empty-state component#14814

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:feature/external-links-in-empty-state-item
Jun 16, 2026
Merged

[6.x] Handle external links in empty-state component#14814
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:feature/external-links-in-empty-state-item

Conversation

@daun

@daun daun commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The Empty State components are great for custom addons :) Passing in an external link as href leads to an exception since Inertia is blocking the navigation. This PR makes the component check for and handle external links and optionally opens links in a new tab.

daun and others added 2 commits June 12, 2026 17:46
Aligns with the rest of the @ui library (Button, Badge, Dropdown,
Context, Heading) which expose a `target` prop, rather than a
bespoke `openNewTab` boolean. A `target="_blank"` link now renders
an `<a>` so it opens in a new tab even for internal CP URLs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga jasonvarga enabled auto-merge (squash) June 16, 2026 14:07
@jasonvarga jasonvarga merged commit 1836298 into statamic:6.x Jun 16, 2026
18 checks passed
@daun daun deleted the feature/external-links-in-empty-state-item branch June 19, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants